package com.xia.mail;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Transport;

public class SendMailThread implements Runnable {
	Message mailMessage;

	public SendMailThread(Message mailMessage) {
		this.mailMessage = mailMessage;
		try {
			try {
				Thread.sleep(2000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			Transport.send(mailMessage);
		} catch (MessagingException e) {
			e.printStackTrace();
		}
	}

	public void run() {

	}
}
